<?php /* Smarty version 2.6.18, created on 2016-12-12 18:31:05
         compiled from activitys/m.subject.list.tpl.php */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.header.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!--头部 end-->
<!--主体部分-->
<form name="myform" action="" method="get">
<div class="container" style="margin-top:70px;">
 <div class="row" style="margin-right:10%;">
      <div  class="col-xs-sm  text-right" > <a class="btn btn-primary" href="index.php?a=activityssubject.activityssubjectadd" style="width:30%">增加</a></div>
     </div><!--row  end-->
     
 
     <div class="row" style="margin-top:10px;">
     
     
              <div class="col-sm-12 distance" >
                  
                       <div class="form-group">
                                <label for="" class="col-sm-2 control-label">年级:</label>
                                <div class="col-sm-10">
                                   <select class="form-control" name="grade_id">
									   <option value="">全部</option>
									   <?php $_from = $this->_tpl_vars['grade_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
											  <option value="<?php echo $this->_tpl_vars['value']['grade_id']; ?>
"<?php if ($this->_tpl_vars['value']['grade_id'] == $this->_tpl_vars['grade_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</option>
									   <?php endforeach; endif; unset($_from); ?>
									</select>
                                </div>
                       </div>
               
               </div>
       
           
            <div class="col-sm-12 distance" >
                  
                       <div class="form-group">
                                 <label for="" class="col-sm-2 control-label">学科:</label>
                                <div class="col-sm-10">
                                   <select class="form-control" name="subject_id">
									  <option value="">全部</option>
									   <?php $_from = $this->_tpl_vars['subject_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
											  <option value="<?php echo $this->_tpl_vars['value']['subject_id']; ?>
"<?php if ($this->_tpl_vars['value']['subject_id'] == $this->_tpl_vars['subject_id']): ?>selected<?php endif; ?>><?php echo $this->_tpl_vars['value']['subject_name']; ?>
</option>
									   <?php endforeach; endif; unset($_from); ?>
									</select>
                                </div>
                       </div>
               
               </div>
       
       
               <div class="col-sm-12 distance hierarchy" >
                  
                       <div class="form-group">
                                 <label for="" class="col-sm-2 control-label">开始日期:</label>
                                <div class="col-sm-10">
                                   <input type="text" class="form-control"  id="from" name="from" value="<?php echo $this->_tpl_vars['from']; ?>
">
                                </div>
                       </div>
               
               </div>
               
                 <div class="col-sm-12 distance hierarchy" >
                  
                       <div class="form-group">
                                 <label for="" class="col-sm-2 control-label">结束日期:</label>
                                <div class="col-sm-10">
                                   <input type="text" class="form-control" value="<?php echo $this->_tpl_vars['to']; ?>
" id="to" name="to">
                                </div>
                       </div>
               
               </div>
             
               <div class="col-xs-12 distance hierarchy2">
                  
                     <div class="form-group  text-center" style="padding-top:0px;">
                             
							 <input type="hidden" name="a" value="activitysSubject.activityssubjectlist">
                             <button type="submit" class="btn btn-success absolutely ">搜索</button>
                           
                           
                       </div>
                      
               </div>
               
               
      </div>   
      </form>
      <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
      <!-- <h5>总计44条信息</h5>-->
	  <?php $_from = $this->_tpl_vars['activitys_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['key'] => $this->_tpl_vars['value']):
?>
         <table class="table table-striped table-bordered"  id="middles">
            <tr>
            
            <td>活动项目名称</td>
            <td><?php echo $this->_tpl_vars['value']['activitys_title']; ?>
</td>
            
            </tr>
            
            <tr>
            
            <td>年级</td>
            <td><?php echo $this->_tpl_vars['value']['grade_name']; ?>
</td>
            
            </tr>
            
             <tr>
            
            <td>学科</td>
            <td><?php echo $this->_tpl_vars['value']['subject_name']; ?>
</td>
            
            </tr>
            
             <tr>
            
            <td>提交人</td>
            <td><?php echo $this->_tpl_vars['value']['user_name']; ?>
</td>
            
            </tr>
             <tr>
            
            <td>时间</td>
            <td><?php echo $this->_tpl_vars['value']['create_time']; ?>
</td>
            
            </tr>
            <tr>
            <td>操作</td>
             <td ><a type="button" class="btn btn-warning  " href="index.php?a=activityssubject.activityssubjectinfo&activitys_id=<?php echo $this->_tpl_vars['value']['activitys_id']; ?>
" >查看</a>  <a type="button" class="btn btn-danger  " href="index.php?a=activityssubject.activityssubjectupdate&activitys_id=<?php echo $this->_tpl_vars['value']['activitys_id']; ?>
" >修改</a> </td>
            </tr>
           
       </table>
     <?php endforeach; endif; unset($_from); ?>      
       
        
       
      
      </div>  
    
       
</div><!--container  end-->

<!--主体部分  end-->
<!--底部-->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "m.index.footer.tpl.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<script>
  $(function() {
    $( "#from" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
	  changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#to" ).datepicker( "option", "minDate", selectedDate );
      }
    });
    $( "#to" ).datepicker({
      defaultDate: "+1w",
      changeMonth: true,
      changeYear: true,
      numberOfMonths:1,
      onClose: function( selectedDate ) {
        $( "#from" ).datepicker( "option", "maxDate", selectedDate );
      }
    });
  });
 </script>